import request from '@/utils/request'
export default {
    list() {
        return request({
            url: '/api/core/car/index',
            method: 'get'
        })
    },
    removeById(carId) {
        return request({
            url: `/api/core/car/remove/${carId}`,
            method: 'delete'
        })
    },
    save(car) {
        return request({
            url: '/api/core/car/save',
            method: 'post',
            data: car
        })
    }
}